gtkplacessidebar: order mounts by label
authorCarlos Soriano <csoriano@gnome.org>
Fri, 21 Aug 2015 13:00:07 +0000 (15:00 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Fri, 21 Aug 2015 13:01:22 +0000 (15:01 +0200)
We were not ordering them at all, and therefore they were
jumping around

https://bugzilla.gnome.org/show_bug.cgi?id=753925

gtk/gtkplacessidebar.c

index 3049e5a77880d919a12e203a8d12afd8d775a2e7..e997e6b9f803082aecc055d4e942b3df4c1e5875 100644 (file)
@@ -3562,10 +3562,10 @@ list_box_sort_func (GtkListBoxRow *row1,
     {
       if (section_type_1 == section_type_2)
         {
-          if ((section_type_1 == section_type_2) &&
-              (section_type_1 == SECTION_COMPUTER) &&
-              (place_type_1 == place_type_2) &&
-              (place_type_1 == PLACES_XDG_DIR))
+          if ((section_type_1 == SECTION_COMPUTER &&
+               place_type_1 == place_type_2 &&
+               place_type_1 == PLACES_XDG_DIR) ||
+              section_type_1 == SECTION_MOUNTS)
             {
               retval = g_utf8_collate (label_1, label_2);
             }